<?php 

$date = $_POST['meetdate'];
$time = $_POST['meetingtime'];
$building = $_POST['building'];
$room = $_POST['room'];
$workshopId = $_POST['category'];

			error_reporting(0);
			$errorMsg = $_GET['errorMsg'];
	
			$userID = $_SESSION['userId'];
	
			$wkshpId = $_POST['submit'];
			
			$con = mysql_connect("localhost", "group5", "group5");
			if(!$con)
			{
				echo "Connection failed!";
				exit;
			}
			
			mysql_select_db("group5");

//update time and date and roomId.
$update = "update WORKSHOP_SESSIONS set meetingTime = '$time', meetingDay = '$date',roomId = '$room' where workshopSessionId = '$workshopId";
mysql_query($update);

//update building id in ROOM
$update2 = "update ROOM set bldgId = '$building' where roomId = '$room'";
myql_query($update2);

$url="http://cop4813.ccec.unf.edu/~group5/adminManage.php"
header("Location:$url");













?>